﻿<?php
require('conn.php');
require('functions.php');
require('session.php');
//print_r($userdata);

?>

<!doctype html>
<html>
<head>
<meta name="keywords" content="" />
<meta name="description" content="">
<link href="css1/base.css?vew=20160106" rel="stylesheet" type="text/css" />
<link href="css1/header.css" rel="stylesheet" type="text/css" />
<link href="css1/weiUI.css?1" rel="stylesheet" type="text/css" />
<link href="css1/security.css" rel="stylesheet" type="text/css" />
<script type=text/javascript > var app="/user" </script>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type=text/javascript src="/user/public/js/jquery.common.js"></script>
</head> 
<body>
<div id="content">
  <?php include('header.php')?>
<script>
	(function () {
		var menustate = document.getElementById('g-menustate');
		menustate.addEventListener("click", function (e) {
			if (menustate.checked) {
				$('#g-menustate').addClass('g-noscroll')
			}else {
				$('#g-menustate').removeClass('g-noscroll')
			}
		});
	})();
</script><style>
	tbody {
		opacity: 0;
	}
	tbody.expand-transition {
		transition: all 0.5s ease;
		opacity: 1;
	}
</style>
<div id="trade" class="user-trade l-bottom-padding">
	<table class="g-table">
		<thead>
			<tr>
				<th>排行</th>
				<th>昵称</th>
				<th>总收益（元）</th>
			</tr>
		</thead>
		<tbody  class="expand-transition">
        
        <?php
$rows=$mysql->query("select * from `userdata` order by -`money` limit 0,10");
for($i=0;$i<=9;$i++){
$phone = substr_replace($rows[$i]['phone'],'****',3,4);
$ii=$i+1;
?>
        		<tr>
				<td>
					<span><?php echo $ii?></span>
				</td>
				<td><span><?php echo $phone?></span></td>
				<td class="g-income">
					<span></span><span ><?php echo $rows[$i]['money']?></span>
				</td>
			</tr>
		 <?php
		 }
?>

					</tbody>
	</table>
	<a class="g-loading-more" v-if="pageView.show_more" v-on="click:loadingMore" v-text="pageView.show_more_text" v-transition="expand"></a>
</div>
<script>
	(function () {
		setTimeout(function(){
		$('#g-footer').addClass('show');
		},1000);
	})();
</script>
<footer class="g-footer" id="g-footer">
	<p>客服QQ：<?php echo $config['qqkf']?>（9:00-22:00）</p>
	<p><i class="iconfont">&#xe605;</i> 您的收入安全由阳光保险承保</p>
	 
</footer>
<div style="display: none;">
</div>
</div>
</body>
</html>